import { Sequelize, DataTypes } from 'sequelize'

export let sequelize = new Sequelize('test', 'root', 'Ye725601', {
    host: '8.152.214.221',
    dialect: 'mysql'
})

export let User = sequelize.define('user', {
    name: {
        type: DataTypes.STRING,
        allowNull: false
    }, age: {
        type: DataTypes.STRING,
        allowNull: false
    }, sex: {
        type: DataTypes.STRING,
        allowNull: false
    }, phone: {
        type: DataTypes.STRING,
        allowNull: false
    }
})